#
# Be sure to run `pod lib lint DLPaddleLiteSDK.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'DLPaddleLiteSDK'
  s.version          = '0.0.2'
  s.summary          = '基于PaddleLite实现OCR识别手机号'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'http://192.168.3.182/dbh/dlpaddlelitesdk'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'dbh' => '310701836@qq.com' }
  s.source           = { :git => 'http://192.168.3.182/dbh/dlpaddlelitesdk.git', :tag => s.version.to_s }

  s.ios.deployment_target = '11.0'
  s.source_files = 'DLPaddleLiteSDK/Classes/*.{h,m,mm}', 'DLPaddleLiteSDK/paddleUtil/*'
  s.public_header_files = 'Pod/Classes/**/*.h'
  s.private_header_files = 'Pod/paddleUtil/*.{hpp,h}'
  
  # 开放的库资源文件 - 有资源则需要打开这里的注释
  s.resource_bundles = {
    'DLPaddleLiteSDK' => ['DLPaddleLiteSDK/Classes/**/*.{txt,nb}']
  }
  
  s.vendored_libraries  = 'DLPaddleLiteSDK/ThirdParty/PaddleLite/lib/libpaddle_api_light_bundled.a'
  
  s.vendored_frameworks = 'DLPaddleLiteSDK/ThirdParty/opencv2.framework',
#  s.dependency 'OpenCV', '3.4.2'
  s.libraries = 'c++'
  s.frameworks = 'CoreMedia','AssetsLibrary','AVFoundation','opencv2'

#  s.compiler_flags = '-mfloat-abi=softfp',
  s.static_framework = true

  s.pod_target_xcconfig = {
      'USER_HEADER_SEARCH_PATHS' => '$(inherited) ${PODS_ROOT}/../../DLPaddleLiteSDK/ThirdParty/PaddleLite/include',
#      '$(inherited) $(SRCROOT)/ThirdParty/PaddleLite/include ${PODS_ROOT}/ThirdParty/PaddleLite/include',
#      s.pod_target_xcconfig = { 'HEADER_SEARCH_PATHS' => }
      'DEFINES_MODULE' => 'YES',
      'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386',
      'VALID_ARCHS[sdk=iphonesimulator*]' => '',
      'OTHER_LDFLAGS' => '$(inherited) -undefined dynamic_lookup',
  }
end
